package com.ruoyi.system.api;

import com.ruoyi.system.api.config.FeignConfig;
import com.ruoyi.system.api.factory.RemoteALYFallbackFactory;
import com.ruoyi.system.api.factory.RemoteQYMessageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * 阿里云接口
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteALYService",name = "remoteALYService",url = "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1", fallbackFactory = RemoteALYFallbackFactory.class)
public interface RemoteALYService
{

    /**
     *发送业务请求
     *
     */
    @PostMapping(value = "/FlashRecognizer", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
    String send(
            @RequestParam("appkey")String appkey,
            @RequestParam("format")String format,
            @RequestParam("token")String token,
            @RequestParam("audio_address")String audio_address
                );
}
